package com.feiyu.file.service;

import com.feiyu.resource.entity.Resource;
import com.github.tobato.fastdfs.domain.fdfs.StorePath;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;

/**
 * @author tang ming
 * @since 2021/12/6 16:20
 */
public interface FileService {

    StorePath upload(MultipartFile file);

    String uploadResource(MultipartFile file, Resource resource);

    String uploadImage(MultipartFile file);

    boolean delete(long id,String type);

    void download(long id, HttpServletResponse response);
}
